import request from '@/utils/request'

// 获取所有登录日志
export function getLoginLogList(data) {
  return request({
    url: '/logger/login/list',
    method: 'get',
    params: data
  })
}

// 清除所有登录日志
export function deleteAllLogin() {
  return request({
    url: '/logger/login/removeAll',
    method: 'delete'
  })
}

// 查询所有操作日志
export function getOperList(data) {
  return request({
    url: '/logger/oper/list',
    method: 'get',
    params: data
  })
}

// 清除所有操作日志
export function deleteAllOper() {
  return request({
    url: '/logger/oper/removeAll',
    method: 'delete'
  })
}
